# 1-100和

#!/bin/bash

# for
sum=0
for ((i=1;i<=100;i++))
do 
	sum=$[$sum+$i]
done

echo $sum


# for in
sum1=0
# for i in 10 20 30  #能相加
# for i in $*        #能遍历
# for i in $@        #能遍历
#for i in "$*"       #不能遍历
for i in "$@"        #能遍历
do
	
	echo sum1=$i
done

